package com.warm.pump.module.monitor.dao.gen;

import java.util.List;
import java.util.Map;
import java.util.Date;
import java.math.BigDecimal;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import com.warm.pump.frame.gen.bean.PageBean;
import com.warm.pump.frame.gen.util.TypeCast;
import com.warm.pump.frame.gen.exception.ServiceException;
import com.warm.pump.module.monitor.bean.po.gen.MisfireInform;
import com.warm.pump.module.monitor.mapper.gen.MisfireInformMapper;
import com.warm.pump.module.monitor.bean.po.gen.MisfireInformExample;
@Repository
public class MisfireInformDao {
	// 日志对象
	private transient Log log = LogFactory.getLog(this.getClass());
	@Autowired
	private MisfireInformMapper misfireInformMapper;

	// 增加一个后台MisfireInform表
	
	public boolean insert(MisfireInform misfireInform) {
		try {
			misfireInformMapper.insert(misfireInform);
			log.debug("后台MisfireInform表增加成功");
			return true;
		} catch (Exception e) {
			log.debug("后台MisfireInform表增加失败");
			throw new ServiceException("后台MisfireInform表增加失败",e);
		}
	}
	// 增加一个后台MisfireInform表Selective
	
	public boolean insertSelective(MisfireInform misfireInform) {
		try {
			misfireInformMapper.insertSelective(misfireInform);
			log.debug("后台MisfireInform表增加成功");
			return true;
		} catch (Exception e) {
			log.debug("后台MisfireInform表增加失败");
			throw new ServiceException("后台MisfireInform表增加失败",e);
		}
	}

	// 删除一个后台MisfireInform表
	
	public boolean deleteByPrimaryKey(Long id) {
		try{
			misfireInformMapper.deleteByPrimaryKey(id);
			log.debug("后台MisfireInform表删除成功");
			return true;
		} catch(Exception e){
			log.debug("后台MisfireInform表删除失败");
			throw new ServiceException("后台MisfireInform表删除失败",e);
		}
	}
	// 删除一个后台MisfireInform表byMap
	
	public boolean deleteByMap(Map misfireInformMap) {
		try{
			misfireInformMapper.deleteByExample(createMisfireInformExample(misfireInformMap,null,null));
			log.debug("后台MisfireInform根据Map删除成功");
			return true;
		}
		
		catch(Exception e){
			log.debug("后台MisfireInform根据GroupID删除失败");
			throw new ServiceException("后台MisfireInform根据object删除失败",e);
		}
	}
	// 修改一个后台MisfireInform表
	
	public boolean updateByPrimaryKey(MisfireInform misfireInform) {
		try{
			misfireInformMapper.updateByPrimaryKey(misfireInform);
			log.debug("后台MisfireInform表修改成功");
			return true;
		}
		
		catch(Exception e){
			log.debug("后台MisfireInform表修改失败");
			throw new ServiceException("后台MisfireInform表修改失败",e);
		}
	}
	// 修改一个后台MisfireInform表Selective
	
	public boolean updateByPrimaryKeySelective(MisfireInform misfireInform) {
		try{
			misfireInformMapper.updateByPrimaryKeySelective(misfireInform);
			log.debug("后台MisfireInform表修改成功");
			return true;
		}
		
		catch(Exception e){
			log.debug("后台MisfireInform表修改失败");
			throw new ServiceException("后台MisfireInform表修改失败",e);
		}
	}
	// 修改一个后台MisfireInform表
	
	public boolean updateByMap(MisfireInform misfireInform,Map misfireInformMap) {
		try{
			misfireInformMapper.updateByExample(misfireInform,createMisfireInformExample(misfireInformMap,null,null));
			log.debug("后台批量MisfireInform表修改成功");
			return true;
		}
		catch(Exception e){
			log.debug("后台批量MisfireInform表修改失败");
			throw new ServiceException("后台MisfireInform表批量修改失败",e);
		}
	}
	// 修改一个后台MisfireInform表Selective
	
	public boolean updateByMapSelective(MisfireInform misfireInform,Map misfireInformMap) {
		try{
			misfireInformMapper.updateByExampleSelective(misfireInform,createMisfireInformExample(misfireInformMap,null,null));
			log.debug("后台批量MisfireInform表修改成功");
			return true;
		}
		catch(Exception e){
			log.debug("后台批量MisfireInform表修改失败");
			throw new ServiceException("后台MisfireInform表批量修改失败",e);
		}
	}

	// 查询一个后台MisfireInform表
	
	public MisfireInform selectByPrimaryKey(Long id) {
		return misfireInformMapper.selectByPrimaryKey(id);
	}
	
	// 查询一个后台MisfireInform表-根据map
	
	public MisfireInform selectByMap(Map misfireInformMap) {
		List<MisfireInform> list = getListByMap(misfireInformMap);
		if(list==null||list.isEmpty()){
			return null;
		}else{
			return list.get(0);
		}
	}

	////////////////////////////////////////////////////////////////////////////////////////////////////////
	// 查询所有后台MisfireInform表
	
	public List<MisfireInform> getListByMap(Map misfireInformMap) {
		
		return misfireInformMapper.selectByExample(createMisfireInformExample(misfireInformMap,null,null));
	}

	//统计后台MisfireInform表数量
	
	public int countTotalByMap(Map misfireInformMap) {
		
		return misfireInformMapper.countByExample(createMisfireInformExample(misfireInformMap,null,null));
	}

	
	public List<MisfireInform> getListByMapPage(Map misfireInformMap, int limitStart,
			int limitOffset) {
		
		return misfireInformMapper.selectByExample(createMisfireInformExample(misfireInformMap,limitStart,limitOffset));
	}
	
	
	public PageBean getPageBeanByMap(Map misfireInformMap,int pageNo,int pageSize) {
		Integer count = countTotalByMap(misfireInformMap);
		PageBean pageBean = new PageBean();
		pageBean.setCount(count);
		pageBean.setPageNo(pageNo);
		pageBean.setPageSize(pageSize);
		int limitStart = pageBean.getStartNo();
		int limitOffset = pageSize;
		pageBean.setData(misfireInformMapper.selectByExample(createMisfireInformExample(misfireInformMap,limitStart,limitOffset)));
		return pageBean;
	}
		
	private MisfireInformExample createMisfireInformExample(Map misfireInformMap,Integer limitStart,Integer limitOffset){
			MisfireInformExample misfireInformEx = new MisfireInformExample();
			MisfireInformExample.Criteria c = misfireInformEx.createCriteria();
				Long id_null = TypeCast.getLong(misfireInformMap.get("id_null"));
				Long id_notNull = TypeCast.getLong(misfireInformMap.get("id_notNull"));
				Long id = TypeCast.getLong(misfireInformMap.get("id"));
				Long id_not = TypeCast.getLong(misfireInformMap.get("id_not"));
				Long id_greater = TypeCast.getLong(misfireInformMap.get("id_greater"));
				Long id_greaterEqual = TypeCast.getLong(misfireInformMap.get("id_greaterEqual"));
				Long id_less = TypeCast.getLong(misfireInformMap.get("id_less"));
				Long id_lessEqual = TypeCast.getLong(misfireInformMap.get("id_lessEqual"));
				List<Long> id_in = TypeCast.getLongList(misfireInformMap.get("id_in"));
				List<Long> id_notIn = TypeCast.getLongList(misfireInformMap.get("id_notIn"));
				Long id_between1 = TypeCast.getLong(misfireInformMap.get("id_between1"));
				Long id_between2 = TypeCast.getLong(misfireInformMap.get("id_between2"));
				Long id_notBetween1 = TypeCast.getLong(misfireInformMap.get("id_notBetween1"));
				Long id_notBetween2 = TypeCast.getLong(misfireInformMap.get("id_notBetween2"));
				
				if(id_null != null){
					c.andIdIsNull();
				}
				if(id_notNull != null){
					c.andIdIsNotNull();
				}
				if(id != null){
					c.andIdEqualTo(id);
				}
				if(id_not != null){
					c.andIdNotEqualTo(id_not);
				}
				if(id_greater != null){
					c.andIdGreaterThan(id_greater);
				}
				if(id_greaterEqual != null){
					c.andIdGreaterThanOrEqualTo(id_greaterEqual);
				}
				if(id_less != null){
					c.andIdLessThan(id_less);
				}
				if(id_lessEqual != null){
					c.andIdLessThanOrEqualTo(id_lessEqual);
				}
				if(id_in != null){
					c.andIdIn(id_in);
				}
				if(id_notIn != null){
					c.andIdNotIn(id_notIn);
				}
				if(id_between1 != null){
					c.andIdBetween(id_between1,id_between2);
				}
				if(id_notBetween1 != null){
					c.andIdNotBetween(id_notBetween1,id_notBetween2);
				}
				String name_null = TypeCast.getString(misfireInformMap.get("name_null"));
				String name_notNull = TypeCast.getString(misfireInformMap.get("name_notNull"));
				String name = TypeCast.getString(misfireInformMap.get("name"));
				String name_not = TypeCast.getString(misfireInformMap.get("name_not"));
				String name_greater = TypeCast.getString(misfireInformMap.get("name_greater"));
				String name_greaterEqual = TypeCast.getString(misfireInformMap.get("name_greaterEqual"));
				String name_less = TypeCast.getString(misfireInformMap.get("name_less"));
				String name_lessEqual = TypeCast.getString(misfireInformMap.get("name_lessEqual"));
				String name_like = TypeCast.getString(misfireInformMap.get("name_like"));
				String name_notLike = TypeCast.getString(misfireInformMap.get("name_notLike"));
				List<String> name_in = TypeCast.getStringList(misfireInformMap.get("name_in"));
				List<String> name_notIn = TypeCast.getStringList(misfireInformMap.get("name_notIn"));
				String name_between1 = TypeCast.getString(misfireInformMap.get("name_between1"));
				String name_between2 = TypeCast.getString(misfireInformMap.get("name_between2"));
				String name_notBetween1 = TypeCast.getString(misfireInformMap.get("name_notBetween1"));
				String name_notBetween2 = TypeCast.getString(misfireInformMap.get("name_notBetween2"));
				
				if(name_null != null){
					c.andNameIsNull();
				}
				if(name_notNull != null){
					c.andNameIsNotNull();
				}
				if(name != null){
					c.andNameEqualTo(name);
				}
				if(name_not != null){
					c.andNameNotEqualTo(name_not);
				}
				if(name_greater != null){
					c.andNameGreaterThan(name_greater);
				}
				if(name_greaterEqual != null){
					c.andNameGreaterThanOrEqualTo(name_greaterEqual);
				}
				if(name_less != null){
					c.andNameLessThan(name_less);
				}
				if(name_lessEqual != null){
					c.andNameLessThanOrEqualTo(name_lessEqual);
				}
				if(name_like != null){
					c.andNameLike(name_like);
				}
				if(name_notLike != null){
					c.andNameNotLike(name_notLike);
				}
				if(name_in != null){
					c.andNameIn(name_in);
				}
				if(name_notIn != null){
					c.andNameNotIn(name_notIn);
				}
				if(name_between1 != null){
					c.andNameBetween(name_between1,name_between2);
				}
				if(name_notBetween1 != null){
					c.andNameNotBetween(name_notBetween1,name_notBetween2);
				}
				String informMode_null = TypeCast.getString(misfireInformMap.get("informMode_null"));
				String informMode_notNull = TypeCast.getString(misfireInformMap.get("informMode_notNull"));
				String informMode = TypeCast.getString(misfireInformMap.get("informMode"));
				String informMode_not = TypeCast.getString(misfireInformMap.get("informMode_not"));
				String informMode_greater = TypeCast.getString(misfireInformMap.get("informMode_greater"));
				String informMode_greaterEqual = TypeCast.getString(misfireInformMap.get("informMode_greaterEqual"));
				String informMode_less = TypeCast.getString(misfireInformMap.get("informMode_less"));
				String informMode_lessEqual = TypeCast.getString(misfireInformMap.get("informMode_lessEqual"));
				String informMode_like = TypeCast.getString(misfireInformMap.get("informMode_like"));
				String informMode_notLike = TypeCast.getString(misfireInformMap.get("informMode_notLike"));
				List<String> informMode_in = TypeCast.getStringList(misfireInformMap.get("informMode_in"));
				List<String> informMode_notIn = TypeCast.getStringList(misfireInformMap.get("informMode_notIn"));
				String informMode_between1 = TypeCast.getString(misfireInformMap.get("informMode_between1"));
				String informMode_between2 = TypeCast.getString(misfireInformMap.get("informMode_between2"));
				String informMode_notBetween1 = TypeCast.getString(misfireInformMap.get("informMode_notBetween1"));
				String informMode_notBetween2 = TypeCast.getString(misfireInformMap.get("informMode_notBetween2"));
				
				if(informMode_null != null){
					c.andInformModeIsNull();
				}
				if(informMode_notNull != null){
					c.andInformModeIsNotNull();
				}
				if(informMode != null){
					c.andInformModeEqualTo(informMode);
				}
				if(informMode_not != null){
					c.andInformModeNotEqualTo(informMode_not);
				}
				if(informMode_greater != null){
					c.andInformModeGreaterThan(informMode_greater);
				}
				if(informMode_greaterEqual != null){
					c.andInformModeGreaterThanOrEqualTo(informMode_greaterEqual);
				}
				if(informMode_less != null){
					c.andInformModeLessThan(informMode_less);
				}
				if(informMode_lessEqual != null){
					c.andInformModeLessThanOrEqualTo(informMode_lessEqual);
				}
				if(informMode_like != null){
					c.andInformModeLike(informMode_like);
				}
				if(informMode_notLike != null){
					c.andInformModeNotLike(informMode_notLike);
				}
				if(informMode_in != null){
					c.andInformModeIn(informMode_in);
				}
				if(informMode_notIn != null){
					c.andInformModeNotIn(informMode_notIn);
				}
				if(informMode_between1 != null){
					c.andInformModeBetween(informMode_between1,informMode_between2);
				}
				if(informMode_notBetween1 != null){
					c.andInformModeNotBetween(informMode_notBetween1,informMode_notBetween2);
				}
				String contactName_null = TypeCast.getString(misfireInformMap.get("contactName_null"));
				String contactName_notNull = TypeCast.getString(misfireInformMap.get("contactName_notNull"));
				String contactName = TypeCast.getString(misfireInformMap.get("contactName"));
				String contactName_not = TypeCast.getString(misfireInformMap.get("contactName_not"));
				String contactName_greater = TypeCast.getString(misfireInformMap.get("contactName_greater"));
				String contactName_greaterEqual = TypeCast.getString(misfireInformMap.get("contactName_greaterEqual"));
				String contactName_less = TypeCast.getString(misfireInformMap.get("contactName_less"));
				String contactName_lessEqual = TypeCast.getString(misfireInformMap.get("contactName_lessEqual"));
				String contactName_like = TypeCast.getString(misfireInformMap.get("contactName_like"));
				String contactName_notLike = TypeCast.getString(misfireInformMap.get("contactName_notLike"));
				List<String> contactName_in = TypeCast.getStringList(misfireInformMap.get("contactName_in"));
				List<String> contactName_notIn = TypeCast.getStringList(misfireInformMap.get("contactName_notIn"));
				String contactName_between1 = TypeCast.getString(misfireInformMap.get("contactName_between1"));
				String contactName_between2 = TypeCast.getString(misfireInformMap.get("contactName_between2"));
				String contactName_notBetween1 = TypeCast.getString(misfireInformMap.get("contactName_notBetween1"));
				String contactName_notBetween2 = TypeCast.getString(misfireInformMap.get("contactName_notBetween2"));
				
				if(contactName_null != null){
					c.andContactNameIsNull();
				}
				if(contactName_notNull != null){
					c.andContactNameIsNotNull();
				}
				if(contactName != null){
					c.andContactNameEqualTo(contactName);
				}
				if(contactName_not != null){
					c.andContactNameNotEqualTo(contactName_not);
				}
				if(contactName_greater != null){
					c.andContactNameGreaterThan(contactName_greater);
				}
				if(contactName_greaterEqual != null){
					c.andContactNameGreaterThanOrEqualTo(contactName_greaterEqual);
				}
				if(contactName_less != null){
					c.andContactNameLessThan(contactName_less);
				}
				if(contactName_lessEqual != null){
					c.andContactNameLessThanOrEqualTo(contactName_lessEqual);
				}
				if(contactName_like != null){
					c.andContactNameLike(contactName_like);
				}
				if(contactName_notLike != null){
					c.andContactNameNotLike(contactName_notLike);
				}
				if(contactName_in != null){
					c.andContactNameIn(contactName_in);
				}
				if(contactName_notIn != null){
					c.andContactNameNotIn(contactName_notIn);
				}
				if(contactName_between1 != null){
					c.andContactNameBetween(contactName_between1,contactName_between2);
				}
				if(contactName_notBetween1 != null){
					c.andContactNameNotBetween(contactName_notBetween1,contactName_notBetween2);
				}
				Integer status_null = TypeCast.getInteger(misfireInformMap.get("status_null"));
				Integer status_notNull = TypeCast.getInteger(misfireInformMap.get("status_notNull"));
				Integer status = TypeCast.getInteger(misfireInformMap.get("status"));
				Integer status_not = TypeCast.getInteger(misfireInformMap.get("status_not"));
				Integer status_greater = TypeCast.getInteger(misfireInformMap.get("status_greater"));
				Integer status_greaterEqual = TypeCast.getInteger(misfireInformMap.get("status_greaterEqual"));
				Integer status_less = TypeCast.getInteger(misfireInformMap.get("status_less"));
				Integer status_lessEqual = TypeCast.getInteger(misfireInformMap.get("status_lessEqual"));
				List<Integer> status_in = TypeCast.getIntegerList(misfireInformMap.get("status_in"));
				List<Integer> status_notIn = TypeCast.getIntegerList(misfireInformMap.get("status_notIn"));
				Integer status_between1 = TypeCast.getInteger(misfireInformMap.get("status_between1"));
				Integer status_between2 = TypeCast.getInteger(misfireInformMap.get("status_between2"));
				Integer status_notBetween1 = TypeCast.getInteger(misfireInformMap.get("status_notBetween1"));
				Integer status_notBetween2 = TypeCast.getInteger(misfireInformMap.get("status_notBetween2"));
				
				if(status_null != null){
					c.andStatusIsNull();
				}
				if(status_notNull != null){
					c.andStatusIsNotNull();
				}
				if(status != null){
					c.andStatusEqualTo(status);
				}
				if(status_not != null){
					c.andStatusNotEqualTo(status_not);
				}
				if(status_greater != null){
					c.andStatusGreaterThan(status_greater);
				}
				if(status_greaterEqual != null){
					c.andStatusGreaterThanOrEqualTo(status_greaterEqual);
				}
				if(status_less != null){
					c.andStatusLessThan(status_less);
				}
				if(status_lessEqual != null){
					c.andStatusLessThanOrEqualTo(status_lessEqual);
				}
				if(status_in != null){
					c.andStatusIn(status_in);
				}
				if(status_notIn != null){
					c.andStatusNotIn(status_notIn);
				}
				if(status_between1 != null){
					c.andStatusBetween(status_between1,status_between2);
				}
				if(status_notBetween1 != null){
					c.andStatusNotBetween(status_notBetween1,status_notBetween2);
				}
				String remark_null = TypeCast.getString(misfireInformMap.get("remark_null"));
				String remark_notNull = TypeCast.getString(misfireInformMap.get("remark_notNull"));
				String remark = TypeCast.getString(misfireInformMap.get("remark"));
				String remark_not = TypeCast.getString(misfireInformMap.get("remark_not"));
				String remark_greater = TypeCast.getString(misfireInformMap.get("remark_greater"));
				String remark_greaterEqual = TypeCast.getString(misfireInformMap.get("remark_greaterEqual"));
				String remark_less = TypeCast.getString(misfireInformMap.get("remark_less"));
				String remark_lessEqual = TypeCast.getString(misfireInformMap.get("remark_lessEqual"));
				String remark_like = TypeCast.getString(misfireInformMap.get("remark_like"));
				String remark_notLike = TypeCast.getString(misfireInformMap.get("remark_notLike"));
				List<String> remark_in = TypeCast.getStringList(misfireInformMap.get("remark_in"));
				List<String> remark_notIn = TypeCast.getStringList(misfireInformMap.get("remark_notIn"));
				String remark_between1 = TypeCast.getString(misfireInformMap.get("remark_between1"));
				String remark_between2 = TypeCast.getString(misfireInformMap.get("remark_between2"));
				String remark_notBetween1 = TypeCast.getString(misfireInformMap.get("remark_notBetween1"));
				String remark_notBetween2 = TypeCast.getString(misfireInformMap.get("remark_notBetween2"));
				
				if(remark_null != null){
					c.andRemarkIsNull();
				}
				if(remark_notNull != null){
					c.andRemarkIsNotNull();
				}
				if(remark != null){
					c.andRemarkEqualTo(remark);
				}
				if(remark_not != null){
					c.andRemarkNotEqualTo(remark_not);
				}
				if(remark_greater != null){
					c.andRemarkGreaterThan(remark_greater);
				}
				if(remark_greaterEqual != null){
					c.andRemarkGreaterThanOrEqualTo(remark_greaterEqual);
				}
				if(remark_less != null){
					c.andRemarkLessThan(remark_less);
				}
				if(remark_lessEqual != null){
					c.andRemarkLessThanOrEqualTo(remark_lessEqual);
				}
				if(remark_like != null){
					c.andRemarkLike(remark_like);
				}
				if(remark_notLike != null){
					c.andRemarkNotLike(remark_notLike);
				}
				if(remark_in != null){
					c.andRemarkIn(remark_in);
				}
				if(remark_notIn != null){
					c.andRemarkNotIn(remark_notIn);
				}
				if(remark_between1 != null){
					c.andRemarkBetween(remark_between1,remark_between2);
				}
				if(remark_notBetween1 != null){
					c.andRemarkNotBetween(remark_notBetween1,remark_notBetween2);
				}
				Date createTime_null = TypeCast.getDate(misfireInformMap.get("createTime_null"));
				Date createTime_notNull = TypeCast.getDate(misfireInformMap.get("createTime_notNull"));
				Date createTime = TypeCast.getDate(misfireInformMap.get("createTime"));
				Date createTime_not = TypeCast.getDate(misfireInformMap.get("createTime_not"));
				Date createTime_greater = TypeCast.getDate(misfireInformMap.get("createTime_greater"));
				Date createTime_greaterEqual = TypeCast.getDate(misfireInformMap.get("createTime_greaterEqual"));
				Date createTime_less = TypeCast.getDate(misfireInformMap.get("createTime_less"));
				Date createTime_lessEqual = TypeCast.getDate(misfireInformMap.get("createTime_lessEqual"));
				List<Date> createTime_in = TypeCast.getDateList(misfireInformMap.get("createTime_in"));
				List<Date> createTime_notIn = TypeCast.getDateList(misfireInformMap.get("createTime_notIn"));
				Date createTime_between1 = TypeCast.getDate(misfireInformMap.get("createTime_between1"));
				Date createTime_between2 = TypeCast.getDate(misfireInformMap.get("createTime_between2"));
				Date createTime_notBetween1 = TypeCast.getDate(misfireInformMap.get("createTime_notBetween1"));
				Date createTime_notBetween2 = TypeCast.getDate(misfireInformMap.get("createTime_notBetween2"));
				
				if(createTime_null != null){
					c.andCreateTimeIsNull();
				}
				if(createTime_notNull != null){
					c.andCreateTimeIsNotNull();
				}
				if(createTime != null){
					c.andCreateTimeEqualTo(createTime);
				}
				if(createTime_not != null){
					c.andCreateTimeNotEqualTo(createTime_not);
				}
				if(createTime_greater != null){
					c.andCreateTimeGreaterThan(createTime_greater);
				}
				if(createTime_greaterEqual != null){
					c.andCreateTimeGreaterThanOrEqualTo(createTime_greaterEqual);
				}
				if(createTime_less != null){
					c.andCreateTimeLessThan(createTime_less);
				}
				if(createTime_lessEqual != null){
					c.andCreateTimeLessThanOrEqualTo(createTime_lessEqual);
				}
				if(createTime_in != null){
					c.andCreateTimeIn(createTime_in);
				}
				if(createTime_notIn != null){
					c.andCreateTimeNotIn(createTime_notIn);
				}
				if(createTime_between1 != null){
					c.andCreateTimeBetween(createTime_between1,createTime_between2);
				}
				if(createTime_notBetween1 != null){
					c.andCreateTimeNotBetween(createTime_notBetween1,createTime_notBetween2);
				}
				Date updateTime_null = TypeCast.getDate(misfireInformMap.get("updateTime_null"));
				Date updateTime_notNull = TypeCast.getDate(misfireInformMap.get("updateTime_notNull"));
				Date updateTime = TypeCast.getDate(misfireInformMap.get("updateTime"));
				Date updateTime_not = TypeCast.getDate(misfireInformMap.get("updateTime_not"));
				Date updateTime_greater = TypeCast.getDate(misfireInformMap.get("updateTime_greater"));
				Date updateTime_greaterEqual = TypeCast.getDate(misfireInformMap.get("updateTime_greaterEqual"));
				Date updateTime_less = TypeCast.getDate(misfireInformMap.get("updateTime_less"));
				Date updateTime_lessEqual = TypeCast.getDate(misfireInformMap.get("updateTime_lessEqual"));
				List<Date> updateTime_in = TypeCast.getDateList(misfireInformMap.get("updateTime_in"));
				List<Date> updateTime_notIn = TypeCast.getDateList(misfireInformMap.get("updateTime_notIn"));
				Date updateTime_between1 = TypeCast.getDate(misfireInformMap.get("updateTime_between1"));
				Date updateTime_between2 = TypeCast.getDate(misfireInformMap.get("updateTime_between2"));
				Date updateTime_notBetween1 = TypeCast.getDate(misfireInformMap.get("updateTime_notBetween1"));
				Date updateTime_notBetween2 = TypeCast.getDate(misfireInformMap.get("updateTime_notBetween2"));
				
				if(updateTime_null != null){
					c.andUpdateTimeIsNull();
				}
				if(updateTime_notNull != null){
					c.andUpdateTimeIsNotNull();
				}
				if(updateTime != null){
					c.andUpdateTimeEqualTo(updateTime);
				}
				if(updateTime_not != null){
					c.andUpdateTimeNotEqualTo(updateTime_not);
				}
				if(updateTime_greater != null){
					c.andUpdateTimeGreaterThan(updateTime_greater);
				}
				if(updateTime_greaterEqual != null){
					c.andUpdateTimeGreaterThanOrEqualTo(updateTime_greaterEqual);
				}
				if(updateTime_less != null){
					c.andUpdateTimeLessThan(updateTime_less);
				}
				if(updateTime_lessEqual != null){
					c.andUpdateTimeLessThanOrEqualTo(updateTime_lessEqual);
				}
				if(updateTime_in != null){
					c.andUpdateTimeIn(updateTime_in);
				}
				if(updateTime_notIn != null){
					c.andUpdateTimeNotIn(updateTime_notIn);
				}
				if(updateTime_between1 != null){
					c.andUpdateTimeBetween(updateTime_between1,updateTime_between2);
				}
				if(updateTime_notBetween1 != null){
					c.andUpdateTimeNotBetween(updateTime_notBetween1,updateTime_notBetween2);
				}
			if(misfireInformMap.get("orderBy")!=null){
				misfireInformEx.setOrderByClause((String)misfireInformMap.get("orderBy"));
			}
			if(limitStart != null && limitOffset != null){
				misfireInformEx.setLimitStart(limitStart);
				misfireInformEx.setLimitOffset(limitOffset);
			}
			
			return misfireInformEx;
	}
}
